	angular.module('ksr.filters', [])
	.filter('camelcase', function() {
	  return function(input) {
	    return input.charAt(0).toUpperCase() + input.substr(1).replace(/[A-Z]/g, ' $&');
	  }
	})
	.filter('timestamp', function() {
	  return function(input) {
	  	var temp = input.split(":");
	  	var hour = parseInt(temp[0]),
	  		minute = temp[1],
	  		am="am";
	  		if (hour>=12){
	  			am = "pm";
	  		}
	  		if (hour>12){
	  			hour = hour - 12;
	  		};
	    return hour+":"+minute+" "+am;
	  }
	})
	.filter('formatdate', function() {
	  return function(input) {
	  	var temp = input.split("-");
	  	var year = parseInt(temp[0]),
	  		month= parseInt(temp[1]),
	  		day= parseInt(temp[2]);
	  		
	    return month+"/"+day+"/"+year;
	  }
	});